<include file="Public/min-header" />
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="row">
            <div class="col-sm-12">
                <div class="box">
                    <div class="box-header">
                        <h3 class="box-title">增加类型</h3>
                    </div>
                    <form action="{:U('Topic/categoryHandle')}" method="post" class="form-horizontal">
                        <div class="box-body">
                            <div class="form-group">
                                <label class="control-label col-sm-2">类型名称</label>
                                <div class="col-sm-4">
                                    <input type="text" placeholder="名称" class="form-control" style="width:200px" name="cat_name" value="{$cat_info.cat_name}">
                                </div>
                                <div class="col-sm-4"><span class="help-inline text-warning">这将是该类型在站点上显示的名字。</span></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-sm-2">列表图片</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="img" id="img" value="{$cat_info.img}">
                                </div>
                                <div class="col-sm-1" style="text-align:left;">
                                    <input type="button" class="btn btn-primary pull-right" onClick="GetUploadify(1, 'img', 'topic', '')" value="上传图片" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-sm-2">背景图片</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="back_img" id="back_img" value="{$cat_info.back_img}">
                                </div>
                                <div class="col-sm-1" style="text-align:left;">
                                    <input type="button" class="btn btn-primary pull-right" onClick="GetUploadify(1, 'back_img', 'topic', '')" value="上传图片" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-sm-2">显示排序</label>
                                <div class="col-sm-8">
                                    <input type="text" placeholder="50" class="form-control" style="width:200px"  name="sort_order" value="{$cat_info.sort_order}">
                                    <span class="help-inline"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="text" class="col-sm-2 control-label">是否显示</label>
                                <div class="col-sm-5" style="margin-top:5px;">
                                    <div class="col-sm-2">
                                        <label>
                                            <input type="radio" name="status" value="1" <if condition="$cat_info['status'] eq 1">checked</if>> 显示 </label>
                                    </div>
                                    <div class="col-sm-3">
                                        <label>
                                            <input type="radio" name="status" value="0" <if condition="$cat_info['status'] eq 0">checked</if>> 不显示</label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="text" class="col-sm-2 control-label">内容简介</label>
                                <div class="col-sm-5" style="margin-top:5px;">
                                    <textarea class="form-control" style="height:150px;" name="content">{$cat_info['content']}</textarea>
                                </div>
                            </div>
                        </div>
                        <div class="box-footer">
                            <input type="hidden" name="act" value="{$act}">
                            <input type="hidden" name="id" value="{$cat_info.id}">
                            <button type="reset" class="btn btn-primary"><i class="icon-ok"></i>重填 </button>
                            <button type="submit" class="btn btn-primary pull-right"><i class="icon-ok"></i>提交 </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
</div>
</body>

</html>
